package com.yuankeji.generator.configuration;

import com.yuankeji.generator.core.api.Configuration;

import java.io.InputStream;

/**
 * Copyright (C), 2017-2018
 *
 * @version v1.0
 * @author: 17080537  Alex
 * @Date: 2018/1/5
 * @description: class AbstractFileConfiguration
 */
public abstract class AbstractFileConfiguration implements Configuration {
    private String url;

    public String getFileUrl(){
        return this.url;
    }

    public InputStream getFileStream(String url){
        this.url = url;
        return  AbstractFileConfiguration.class.getResourceAsStream(url);
    }
}
